Configure SQL Server
Configure SQL Server
This guide covers SQL Server Express (free local install) and Azure SQL (cloud hosted, free tier available).
SQL Server Express (Local)
Install SQL Server Express
- Download SQL Server Express from https://www.microsoft.com/en-us/sql-server/sql-server-downloads
- Run the installer and choose the
Basicinstallation type - Note the connection string shown at the end of the install — it will look like
localhost\SQLEXPRESS - Optionally, download and install SSMS (SQL Server Management Studio) from https://aka.ms/ssmsfullsetup for a native UI — or continue with DBeaver
Connect via DBeaver
- Open DBeaver and click the
New Database Connectionbutton in the top left - Search for
SQL Server, select it, and clickNext - Fill in the connection fields:
Host:localhost\SQLEXPRESSPort:1433Authentication:Windows Authentication(simplest for local installs)- Alternatively, if you set up SQL Server Authentication during install, use those credentials instead
- Click
Test Connection— if prompted, download the JDBC driver - Click
Finish
Connect via SSMS (Optional)
- Open SSMS
- Set
Server typetoDatabase Engine - Set
Server nametolocalhost\SQLEXPRESS - Set
AuthenticationtoWindows Authentication - Click
Connect
Azure SQL (Cloud)
- Go to https://portal.azure.com and sign in — a free account is available at https://azure.microsoft.com/free and includes 12 months of Azure SQL
- Click
Create a resource, search forSQL Database, and clickCreate - Fill in the details:
Resource group: create new, name itsql101-rgDatabase name:SQL101Server: create a new server, set an admin login and password, and choose the nearest regionCompute + storage: selectBasictier
- Under
Networking, setAdd current client IPtoYesso DBeaver can connect from your machine - Click
Review + Create, thenCreate— provisioning takes around 2 minutes - Once deployed, go to the resource →
Connection stringsand note the individual fields:Server:yourserver.database.windows.netPort:1433Database:SQL101UsernameandPassword: the credentials set during server creation
- Open DBeaver and create a new
SQL Serverconnection with these details — enable SSL if prompted - Click
Test Connection, thenFinish
Creating the Database Schema
Now that the connection is established you can create the database schema found here. Run USE SQL101 after creating the database to ensure schema objects are created in the right place. For Azure SQL, ensure the firewall rule includes your current IP — if you change networks you may need to update this in the Azure portal under Networking.
Notes
- Named instance connection issues: ensure the SQL Server Browser service is running — open
Servicesand startSQL Server Browser - Port
1433blocked: for local Express, enable TCP/IP inSQL Server Configuration ManagerunderSQL Server Network Configuration - Azure firewall errors: go to the Azure portal → SQL Server resource →
Networking→ add your current IP to the firewall rules - Windows Authentication not working in DBeaver on macOS or Linux: use SQL Server Authentication instead — mixed mode must be enabled during install or via SSMS afterwards
- Driver errors in DBeaver: try the
jTDSdriver option instead of the default Microsoft JDBC driver if connection issues persist